/**
 * @author daniele.gili@usi.ch
 */

package ch.usi.inf.pf2;

import java.util.ArrayList;

public class WaveForm implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private ArrayList<Integer[]> waveSignals = new ArrayList<Integer[]>();

	public WaveForm() {
		for (int i = 0; i < 8; i++) {
			waveSignals.add(new Integer[2]);
		}

		waveSignals.get(0)[0] = 105;
		waveSignals.get(0)[1] = 1;
		waveSignals.get(1)[0] = 105;
		waveSignals.get(1)[1] = 0;
		waveSignals.get(2)[0] = 105;
		waveSignals.get(2)[1] = 1;
		waveSignals.get(3)[0] = 105;
		waveSignals.get(3)[1] = 0;
		waveSignals.get(4)[0] = 105;
		waveSignals.get(4)[1] = 1;
		waveSignals.get(5)[0] = 105;
		waveSignals.get(5)[1] = 0;
		waveSignals.get(6)[0] = 105;
		waveSignals.get(6)[1] = 1;
		waveSignals.get(7)[0] = 105;
		waveSignals.get(7)[1] = 0;

		FileSaver.save("wave", this);
	}

	public ArrayList<Integer[]> getValue() {
		return waveSignals;
	}

	public void addValue(int val) {
		// waveSignals.add(val);
	}

	public int getSignalSize() {
		return waveSignals.size();
	}

}
